// index.js
// 获取应用实例
const app = getApp()

Page({
  data: {
    PageCur: 'basic',  //图片名称
  },

  // 事件处理函数
  onLoad: function (options) {
  },
  NavChange(e) {
    let page_name = e.currentTarget.dataset.cur
    console.log("hhhhhhhh" + page_name)
    this.setData({
      PageCur: page_name
    })
    let page_url = "../" + page_name + "/" + page_name
    console.log(page_url)
    // wx.navigateTo({
    //   url: page_url
    // }) 
  },
  tabBar(){
    if(typeof this.getTabBar === 'function' && this.getTabBar()){
      this.getTabBar().setData({
        selected:0
      })
    }
  }
})
